<?php
class ShowAchievementPage extends AbstractPage
{	
	public static $requireModule = 0;

	function __construct() 
	{
		parent::__construct();
	}

	public function show()
	{
		global $LNG, $PLANET, $USER;
		
		//Basic Producer Achievement
		if($USER['achievements_mine1'] == 0)
		{
			if($PLANET['metal_mine'] >= 10 && $PLANET['crystal_mine'] >= 10 && $PLANET['deuterium_sintetizer'] >=10)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_mine1 = 1, exp_point = exp_point + 1  WHERE `id` = ".$USER['id'].";");
				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/mine1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_mine1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($PLANET['metal_mine'] >=10)
				$mine1_req1 = '<span style="color:lime">'.$LNG['achievements_mine1_require_1'].'</span>';
			else
				$mine1_req1 = '<span style="color:red">'.$LNG['achievements_mine1_require_1'].'</span>';
			if($PLANET['crystal_mine'] >=10)
				$mine1_req2 = '<span style="color:lime">'.$LNG['achievements_mine1_require_2'].'</span>';
			else
				$mine1_req2 = '<span style="color:red">'.$LNG['achievements_mine1_require_2'].'</span>';
			if($PLANET['deuterium_sintetizer'] >=10)
				$mine1_req3 = '<span style="color:lime">'.$LNG['achievements_mine1_require_3'].'</span>';
			else
				$mine1_req3 = '<span style="color:red">'.$LNG['achievements_mine1_require_3'].'</span>';
	
	
	
				
			$this->tplObj->assign_vars(array(
				'mine1_req1'    	=> $mine1_req1,
				'mine1_req2'    	=> $mine1_req2,
				'mine1_req3'    	=> $mine1_req3,
				'mine1_title'    	=> ' <span style="color:red">'.$LNG['achievements_mine1'].'</span>',
				'mine1_img'    		=> ' <img src="styles/achievements/mine1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_mine1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'mine1_title'    	=> ' <span style="color:lime">'.$LNG['achievements_mine1'].'</span>',
				'mine1_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_mine1_done'].'</span>',
				'mine1_req2'    	=> '',
				'mine1_req3'    	=> '',
				'mine1_img'    		=> ' <img src="styles/achievements/mine1_done.png" align="center" /></td>',
			));
		}
	
		//Extensive Producer Achievement
		if($USER['achievements_mine2'] == 0)
		{
			if($PLANET['metal_mine'] >= 20 && $PLANET['crystal_mine'] >= 20 && $PLANET['deuterium_sintetizer'] >=20)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_mine2 = 1, exp_point = exp_point + 2 WHERE `id` = ".$USER['id'].";");
				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/mine2_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_mine2_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($PLANET['metal_mine'] >=20)
				$mine2_req1 = '<span style="color:lime">'.$LNG['achievements_mine2_require_1'].'</span>';
			else
				$mine2_req1 = '<span style="color:red">'.$LNG['achievements_mine2_require_1'].'</span>';
			if($PLANET['crystal_mine'] >=20)
				$mine2_req2 = '<span style="color:lime">'.$LNG['achievements_mine2_require_2'].'</span>';
			else
				$mine2_req2 = '<span style="color:red">'.$LNG['achievements_mine2_require_2'].'</span>';
			if($PLANET['deuterium_sintetizer'] >=20)
				$mine2_req3 = '<span style="color:lime">'.$LNG['achievements_mine2_require_3'].'</span>';
			else
				$mine2_req3 = '<span style="color:red">'.$LNG['achievements_mine2_require_3'].'</span>';
	
	
	
				
			$this->tplObj->assign_vars(array(
				'mine2_req1'    	=> $mine2_req1,
				'mine2_req2'    	=> $mine2_req2,
				'mine2_req3'    	=> $mine2_req3,
				'mine2_title'    	=> ' <span style="color:red">'.$LNG['achievements_mine2'].'</span>',
				'mine2_img'    		=> ' <img src="styles/achievements/mine2_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_mine2'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'mine2_title'    	=> ' <span style="color:lime">'.$LNG['achievements_mine2'].'</span>',
				'mine2_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_mine2_done'].'</span>',
				'mine2_req2'    	=> '',
				'mine2_req3'    	=> '',
				'mine2_img'    		=> ' <img src="styles/achievements/mine2_done.png" align="center" /></td>',
			));
		}
	
		//Fleet Producer Achievement
		if($USER['achievements_mine3'] == 0)
		{
			if($PLANET['metal_mine'] >= 30 && $PLANET['crystal_mine'] >= 30 && $PLANET['deuterium_sintetizer'] >=30)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_mine3 = 1, exp_point = exp_point + 3 WHERE `id` = ".$USER['id'].";");
				
				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/mine3_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_mine3_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($PLANET['metal_mine'] >=30)
				$mine3_req1 = '<span style="color:lime">'.$LNG['achievements_mine3_require_1'].'</span>';
			else
				$mine3_req1 = '<span style="color:red">'.$LNG['achievements_mine3_require_1'].'</span>';
			if($PLANET['crystal_mine'] >=30)
				$mine3_req2 = '<span style="color:lime">'.$LNG['achievements_mine3_require_2'].'</span>';
			else
				$mine3_req2 = '<span style="color:red">'.$LNG['achievements_mine3_require_2'].'</span>';
			if($PLANET['deuterium_sintetizer'] >=30)
				$mine3_req3 = '<span style="color:lime">'.$LNG['achievements_mine3_require_3'].'</span>';
			else
				$mine3_req3 = '<span style="color:red">'.$LNG['achievements_mine3_require_3'].'</span>';
	
	
	
				
			$this->tplObj->assign_vars(array(
				'mine3_req1'    	=> $mine3_req1,
				'mine3_req2'    	=> $mine3_req2,
				'mine3_req3'    	=> $mine3_req3,
				'mine3_title'    	=> ' <span style="color:red">'.$LNG['achievements_mine3'].'</span>',
				'mine3_img'    		=> ' <img src="styles/achievements/mine3_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_mine3'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'mine3_title'    	=> ' <span style="color:lime">'.$LNG['achievements_mine3'].'</span>',
				'mine3_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_mine3_done'].'</span>',
				'mine3_req2'    	=> '',
				'mine3_req3'    	=> '',
				'mine3_img'    		=> ' <img src="styles/achievements/mine3_done.png" align="center" /></td>',
			));
		}
	
		//Golden Producer Achievement
		if($USER['achievements_mine4'] == 0)
		{
			if($PLANET['metal_mine'] >= 40 && $PLANET['crystal_mine'] >= 40 && $PLANET['deuterium_sintetizer'] >=40)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_mine4 = 1, exp_point = exp_point + 4 WHERE `id` = ".$USER['id'].";");
				
				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/mine4_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_mine4_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($PLANET['metal_mine'] >=40)
				$mine4_req1 = '<span style="color:lime">'.$LNG['achievements_mine4_require_1'].'</span>';
			else
				$mine4_req1 = '<span style="color:red">'.$LNG['achievements_mine4_require_1'].'</span>';
			if($PLANET['crystal_mine'] >=40)
				$mine4_req2 = '<span style="color:lime">'.$LNG['achievements_mine4_require_2'].'</span>';
			else
				$mine4_req2 = '<span style="color:red">'.$LNG['achievements_mine4_require_2'].'</span>';
			if($PLANET['deuterium_sintetizer'] >=40)
				$mine4_req3 = '<span style="color:lime">'.$LNG['achievements_mine4_require_3'].'</span>';
			else
				$mine4_req3 = '<span style="color:red">'.$LNG['achievements_mine4_require_3'].'</span>';
	
	
	
				
			$this->tplObj->assign_vars(array(
				'mine4_req1'    	=> $mine4_req1,
				'mine4_req2'    	=> $mine4_req2,
				'mine4_req3'    	=> $mine4_req3,
				'mine4_title'    	=> ' <span style="color:red">'.$LNG['achievements_mine4'].'</span>',
				'mine4_img'    		=> ' <img src="styles/achievements/mine4_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_mine4'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'mine4_title'   	 => ' <span style="color:lime">'.$LNG['achievements_mine4'].'</span>',
				'mine4_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_mine4_done'].'</span>',
				'mine4_req2'    	=> '',
				'mine4_req3'    	=> '',
				'mine4_img'    		=> ' <img src="styles/achievements/mine4_done.png" align="center" /></td>',
			));
		}
	
		//The Art of Mining Achievement
		if($USER['achievements_mine5'] == 0)
		{
			if($PLANET['metal_mine'] >= 50 && $PLANET['crystal_mine'] >= 50 && $PLANET['deuterium_sintetizer'] >=50)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_mine5 = 1, exp_point = exp_point + 5 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/mine5_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_mine5_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($PLANET['metal_mine'] >=50)
				$mine5_req1 = '<span style="color:lime">'.$LNG['achievements_mine5_require_1'].'</span>';
			else
				$mine5_req1 = '<span style="color:red">'.$LNG['achievements_mine5_require_1'].'</span>';
			if($PLANET['crystal_mine'] >=50)
				$mine5_req2 = '<span style="color:lime">'.$LNG['achievements_mine5_require_2'].'</span>';
			else
				$mine5_req2 = '<span style="color:red">'.$LNG['achievements_mine5_require_2'].'</span>';
			if($PLANET['deuterium_sintetizer'] >=50)
				$mine5_req3 = '<span style="color:lime">'.$LNG['achievements_mine5_require_3'].'</span>';
			else
				$mine5_req3 = '<span style="color:red">'.$LNG['achievements_mine5_require_3'].'</span>';
	
	
	
				
			$this->tplObj->assign_vars(array(
				'mine5_req1'    	=> $mine5_req1,
				'mine5_req2'    	=> $mine5_req2,
				'mine5_req3'    	=> $mine5_req3,
				'mine5_title'   	=> ' <span style="color:red">'.$LNG['achievements_mine5'].'</span>',
				'mine5_img'    		=> ' <img src="styles/achievements/mine5_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_mine5'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'mine5_title'   	=> ' <span style="color:lime">'.$LNG['achievements_mine5'].'</span>',
				'mine5_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_mine5_done'].'</span>',
				'mine5_req2'    	=> '',
				'mine5_req3'    	=> '',
				'mine5_img'    		=> ' <img src="styles/achievements/mine5_done.png" align="center" /></td>',
			));
		}
	
		//Government Spy Achievement
		if($USER['achievements_tech1'] == 0)
		{
			if($USER['spy_tech'] >= 20)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_tech1 = 1, exp_point = exp_point + 3 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/tech1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_tech1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($USER['spy_tech'] >= 20)
				$tech1_req1 = '<span style="color:lime">'.$LNG['achievements_tech1_require_1'].'</span>';
			else
				$tech1_req1 = '<span style="color:red">'.$LNG['achievements_tech1_require_1'].'</span>';
	
				
			$this->tplObj->assign_vars(array(
				'tech1_req1'    	=> $tech1_req1,
				'tech1_title'    	=> ' <span style="color:red">'.$LNG['achievements_tech1'].'</span>',
				'tech1_img'   		=> ' <img src="styles/achievements/tech1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_tech1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'tech1_title'  	 	=> ' <span style="color:lime">'.$LNG['achievements_tech1'].'</span>',
				'tech1_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_tech1_done'].'</span>',
				'tech1_img'    		=> ' <img src="styles/achievements/tech1_done.png" align="center" /></td>',
			));
		}
	
		//The Hacker Achievement
		if($USER['achievements_tech2'] == 0)
		{
			if($USER['computer_tech'] >= 22)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_tech2 = 1, exp_point = exp_point + 3 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/tech2_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_tech2_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($USER['computer_tech'] >= 22)
				$tech2_req1 = '<span style="color:lime">'.$LNG['achievements_tech2_require_1'].'</span>';
			else
				$tech2_req1 = '<span style="color:red">'.$LNG['achievements_tech2_require_1'].'</span>';
	
				
			$this->tplObj->assign_vars(array(
				'tech2_req1'    	=> $tech2_req1,
				'tech2_title'    	=> ' <span style="color:red">'.$LNG['achievements_tech2'].'</span>',
				'tech2_img'   		=> ' <img src="styles/achievements/tech2_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_tech2'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'tech2_title'    	=> ' <span style="color:lime">'.$LNG['achievements_tech2'].'</span>',
				'tech2_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_tech2_done'].'</span>',
				'tech2_img'    		=> ' <img src="styles/achievements/tech2_done.png" align="center" /></td>',
			));
		}
	
		//Invincible Integrity Achievement
		if($USER['achievements_tech3'] == 0)
		{
			if($USER['military_tech'] >= 21 && $USER['defence_tech'] >= 21 && $USER['shield_tech'] >= 21)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_tech3 = 1, exp_point = exp_point + 5 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/tech3_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_tech3_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($USER['military_tech'] >= 21)
				$tech3_req1 = '<span style="color:lime">'.$LNG['achievements_tech3_require_1'].'</span>';
			else
				$tech3_req1 = '<span style="color:red">'.$LNG['achievements_tech3_require_1'].'</span>';
			if($USER['defence_tech'] >= 21)
				$tech3_req2 = '<span style="color:lime">'.$LNG['achievements_tech3_require_2'].'</span>';
			else
				$tech3_req2 = '<span style="color:red">'.$LNG['achievements_tech3_require_2'].'</span>';
			if($USER['shield_tech'] >= 21)
				$tech3_req3 = '<span style="color:lime">'.$LNG['achievements_tech3_require_3'].'</span>';
			else
				$tech3_req3 = '<span style="color:red">'.$LNG['achievements_tech3_require_3'].'</span>';
				
				
			$this->tplObj->assign_vars(array(
				'tech3_req1'    	=> $tech3_req1,
				'tech3_req2'    	=> $tech3_req2,
				'tech3_req3'    	=> $tech3_req3,
				'tech3_title'   	=> ' <span style="color:red">'.$LNG['achievements_tech3'].'</span>',
				'tech3_img'    		=> ' <img src="styles/achievements/tech3_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_tech3'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'tech3_title'   	=> ' <span style="color:lime">'.$LNG['achievements_tech3'].'</span>',
				'tech3_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_tech3_done'].'</span>',
				'tech3_req2'    	=> '',
				'tech3_req3'    	=> '',
				'tech3_img'    		=> ' <img src="styles/achievements/tech3_done.png" align="center" /></td>',
			));
		}
	
		//Boost Up! Achievement
		if($USER['achievements_tech4'] == 0)
		{
			if($USER['combustion_tech'] >= 22 && $USER['impulse_motor_tech'] >= 20 && $USER['hyperspace_motor_tech'] >= 18)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_tech4 = 1, exp_point = exp_point + 5 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/tech4_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_tech4_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($USER['combustion_tech'] >= 22)
				$tech4_req1 = '<span style="color:lime">'.$LNG['achievements_tech4_require_1'].'</span>';
			else
				$tech4_req1 = '<span style="color:red">'.$LNG['achievements_tech4_require_1'].'</span>';
			if($USER['impulse_motor_tech'] >= 20)
				$tech4_req2 = '<span style="color:lime">'.$LNG['achievements_tech4_require_2'].'</span>';
			else
				$tech4_req2 = '<span style="color:red">'.$LNG['achievements_tech4_require_2'].'</span>';
			if($USER['hyperspace_motor_tech'] >= 18)
				$tech4_req3 = '<span style="color:lime">'.$LNG['achievements_tech4_require_3'].'</span>';
			else
				$tech4_req3 = '<span style="color:red">'.$LNG['achievements_tech4_require_3'].'</span>';
				
				
			$this->tplObj->assign_vars(array(
				'tech4_req1'    	=> $tech4_req1,
				'tech4_req2'    	=> $tech4_req2,
				'tech4_req3'    	=> $tech4_req3,
				'tech4_title'    => ' <span style="color:red">'.$LNG['achievements_tech4'].'</span>',
				'tech4_img'    => ' <img src="styles/achievements/tech4_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_tech4'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'tech4_title'   => ' <span style="color:lime">'.$LNG['achievements_tech4'].'</span>',
				'tech4_req1'    => ' <span style="color:lime">'.$LNG['achievements_tech4_done'].'</span>',
				'tech4_req2'    => '',
				'tech4_req3'    => '',
				'tech4_img'    	=> ' <img src="styles/achievements/tech4_done.png" align="center" /></td>',
			));
		}
	
		//Civilizated Empire Achievement
		if($USER['achievements_colony1'] == 0)
		{
			$query = $GLOBALS['DATABASE']->uniquequery("SELECT count(*) AS planet_count FROM ".PLANETS." WHERE `id_owner` = '". $USER['id'] ."';");
			$planet_count = $query['planet_count'];
			if($planet_count >=14)		
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_colony1 = 1, exp_point = exp_point + 1 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/colony1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_colony1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			
			else
				$colony1_req1 = '<span style="color:red">'.$LNG['achievements_colony1_require_1'].'</span>';

			$this->tplObj->assign_vars(array(
				'colony1_req1'    	=> $colony1_req1,
				'colony1_title'    	=> ' <span style="color:red">'.$LNG['achievements_colony1'].'</span>',
				'colony1_img'    	=> ' <img src="styles/achievements/colony1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_colony1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'colony1_title'   	=> ' <span style="color:lime">'.$LNG['achievements_colony1'].'</span>',
				'colony1_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_colony1_done'].'</span>',
				'colony1_img'    	=> ' <img src="styles/achievements/colony1_done.png" align="center" /></td>',
			));
		}
		
		//The Brotherhood Achievement
		if($USER['achievements_alliance1'] == 0)
		{
			if($USER['ally_id'] > 0)		
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_alliance1 = 1, exp_point = exp_point + 1 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/alliance1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_alliance1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			
			else
				$alliance1_req1 = '<span style="color:red">'.$LNG['achievements_alliance1_require_1'].'</span>';	
				
			$this->tplObj->assign_vars(array(
				'alliance1_req1'    => $alliance1_req1,
				'alliance1_title'   => ' <span style="color:red">'.$LNG['achievements_alliance1'].'</span>',
				'alliance1_img'    	=> ' <img src="styles/achievements/alliance1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_alliance1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'alliance1_title'   => ' <span style="color:lime">'.$LNG['achievements_alliance1'].'</span>',
				'alliance1_req1'    => ' <span style="color:lime">'.$LNG['achievements_alliance1_done'].'</span>',
				'alliance1_img'    	=> ' <img src="styles/achievements/alliance1_done.png" align="center" /></td>',
			));
		}
		
		//The Muskeeter Achievement
		if($USER['achievements_friend1'] == 0)
		{
			$query = $GLOBALS['DATABASE']->uniquequery("SELECT * FROM ".BUDDY." WHERE `sender` = '". $USER['id'] ."';");
			if($query>1)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_friend1 = 1, exp_point = exp_point + 1 WHERE `id` = ".$USER['id'].";");
	
				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/friend1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_friend1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			
			else
				$friend1_req1 = '<span style="color:red">'.$LNG['achievements_friend1_require_1'].'</span>';	
				
			$this->tplObj->assign_vars(array(
				'friend1_req1'    	=> $friend1_req1,
				'friend1_title'    	=> ' <span style="color:red">'.$LNG['achievements_friend1'].'</span>',
				'friend1_img'   	=> ' <img src="styles/achievements/friend1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_friend1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'friend1_title'   	=> ' <span style="color:lime">'.$LNG['achievements_friend1'].'</span>',
				'friend1_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_friend1_done'].'</span>',
				'friend1_img'    	=> ' <img src="styles/achievements/friend1_done.png" align="center" /></td>',
			));
		}
	
		//Unbreakable Storages Achievement
		if($USER['achievements_storage1'] == 0)
		{
			if($PLANET['metal_store'] >= 21 && $PLANET['crystal_store'] >= 21 && $PLANET['deuterium_store'] >= 21)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_storage1 = 1, exp_point = exp_point + 5 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/storage1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_storage1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($PLANET['metal_store'] >=21)
				$storage1_req1 = '<span style="color:lime">'.$LNG['achievements_storage1_require_1'].'</span>';
			else
				$storage1_req1 = '<span style="color:red">'.$LNG['achievements_storage1_require_1'].'</span>';
			if($PLANET['crystal_store'] >=21)
				$storage1_req2 = '<span style="color:lime">'.$LNG['achievements_storage1_require_2'].'</span>';
			else
				$storage1_req2 = '<span style="color:red">'.$LNG['achievements_storage1_require_2'].'</span>';
			if($PLANET['deuterium_store'] >=21)
				$storage1_req3 = '<span style="color:lime">'.$LNG['achievements_storage1_require_3'].'</span>';
			else
				$storage1_req3 = '<span style="color:red">'.$LNG['achievements_storage1_require_3'].'</span>';
	
				
			$this->tplObj->assign_vars(array(
				'storage1_req1'    	=> $storage1_req1,
				'storage1_req2'    	=> $storage1_req2,
				'storage1_req3'    	=> $storage1_req3,
				'storage1_title'    => ' <span style="color:red">'.$LNG['achievements_storage1'].'</span>',
				'storage1_img'    	=> ' <img src="styles/achievements/storage1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_storage1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'storage1_title'    => ' <span style="color:lime">'.$LNG['achievements_storage1'].'</span>',
				'storage1_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_storage1_done'].'</span>',
				'storage1_req2'    	=> '',
				'storage1_req3'    	=> '',
				'storage1_img'    	=> ' <img src="styles/achievements/storage1_done.png" align="center" /></td>',
			));
		}
			
		//Balance of Galaxy Achievement
		if($USER['achievements_stats1'] == 0)
		{
			if($USER['total_points'] >= 50)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_stats1 = 1, exp_point = exp_point + 3 WHERE `id` = ".$USER['id'].";");
				
				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/stats1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_stats1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			
			else
				$stats1_req1 = '<span style="color:red">'.$LNG['achievements_stats1_require_1'].'</span>';	
				
			$this->tplObj->assign_vars(array(
				'stats1_req1'    	=> $stats1_req1,
				'stats1_title'    	=> ' <span style="color:red">'.$LNG['achievements_stats1'].'</span>',
				'stats1_img'    	=> ' <img src="styles/achievements/stats1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_stats1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'stats1_title'    	=> ' <span style="color:lime">'.$LNG['achievements_stats1'].'</span>',
				'stats1_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_stats1_done'].'</span>',
				'stats1_req2'    	=> '',
				'stats1_req3'    	=> '',
				'stats1_img'    	=> ' <img src="styles/achievements/stats1_done.png" align="center" /></td>',
			));
		}
			
		//Die-Hard Achievement
		if($USER['achievements_destruction1'] == 0)
		{
			if($USER['total_points'] >= 10)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_destruction1 = 1, exp_point = exp_point + 5 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/destruction1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_destruction1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			
			else
				$destruction1_req1 = '<span style="color:red">'.$LNG['achievements_destruction1_require_1'].'</span>';	
				
			$this->tplObj->assign_vars(array(
				'destruction1_req1'    	=> $destruction1_req1,
				'destruction1_title'    => ' <span style="color:red">'.$LNG['achievements_destruction1'].'</span>',
				'destruction1_img'    => ' <img src="styles/achievements/destruction1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_destruction1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'destruction1_title'    => ' <span style="color:lime">'.$LNG['achievements_destruction1'].'</span>',
				'destruction1_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_destruction1_done'].'</span>',
				'destruction1_img'    	=> ' <img src="styles/achievements/destruction1_done.png" align="center" /></td>',
			));
		}
			
		//Survivor Achievement
		if($USER['achievements_battle1'] == 0)
		{
			if($USER['wons'] >= 1000)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_battle1 = 1, exp_point = exp_point + 7 WHERE `id` = ".$USER['id'].";");
	
				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/battle1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_battle1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			
			else
				$battle1_req1 = '<span style="color:red">'.$LNG['achievements_battle1_require_1'].'</span>';	
				
			$this->tplObj->assign_vars(array(
				'battle1_req1'    	=> $battle1_req1,
				'battle1_title'    	=> ' <span style="color:red">'.$LNG['achievements_battle1'].'</span>',
				'battle1_img'    	=> ' <img src="styles/achievements/battle1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_battle1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'battle1_title'   	 => ' <span style="color:lime">'.$LNG['achievements_battle1'].'</span>',
				'battle1_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_battle1_done'].'</span>',
				'battle1_img'    	=> ' <img src="styles/achievements/battle1_done.png" align="center" /></td>',
			));
		}
			
		//Scrap Collector Achievement
		if($USER['achievements_debris1'] == 0)
		{
			if(($USER['kbmetal'] >= 50000000000 && $USER['kbcrystal'] >= 30000000000))
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_debris1 = 1, exp_point = exp_point + 4 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/debris1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_debris1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			
			if($USER['kbmetal'] >=50000000000)
				$debris1_req1 = '<span style="color:lime">'.$LNG['achievements_debris1_require_1'].'</span>';
			else
				$debris1_req1 = '<span style="color:red">'.$LNG['achievements_debris1_require_1'].'</span>';
			if($USER['kbcrystal'] >=30000000000)
				$debris1_req2 = '<span style="color:lime">'.$LNG['achievements_debris1_require_2'].'</span>';
			else
				$debris1_req2 = '<span style="color:red">'.$LNG['achievements_debris1_require_2'].'</span>';
				
			$this->tplObj->assign_vars(array(
				'debris1_req1'    	=> $debris1_req1,
				'debris1_req2'    	=> $debris1_req2,
				'debris1_title'  	=> ' <span style="color:red">'.$LNG['achievements_debris1'].'</span>',
				'debris1_img'	 	=> ' <img src="styles/achievements/debris1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_debris1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'debris1_title' => ' <span style="color:lime">'.$LNG['achievements_debris1'].'</span>',
				'debris1_req1'  => ' <span style="color:lime">'.$LNG['achievements_debris1_done'].'</span>',
				'debris1_req2'	=> '',
				'debris1_img'	=> ' <img src="styles/achievements/debris1_done.png" align="center" /></td>',
			));
		}
	
		//Moon Maker Achievement
		if($USER['achievements_moon1'] == 0)
		{
			$query = $GLOBALS['DATABASE']->uniquequery("SELECT * FROM ".PLANETS." WHERE `planet_type` = 3 AND `id_owner` = '". $USER['id'] ."';");
			if($query>3)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_moon1 = 1, exp_point = exp_point + 7 WHERE `id` = ".$USER['id'].";");
	
				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/moon1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_moon1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			
			else
				$moon1_req1 = '<span style="color:red">'.$LNG['achievements_moon1_require_1'].'</span>';	
				
			$this->tplObj->assign_vars(array(
				'moon1_req1'    	=> $moon1_req1,
				'moon1_title'   	=> ' <span style="color:red">'.$LNG['achievements_moon1'].'</span>',
				'moon1_img'    		=> ' <img src="styles/achievements/moon1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_moon1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'moon1_title'    	=> ' <span style="color:lime">'.$LNG['achievements_moon1'].'</span>',
				'moon1_req1'    	=> ' <span style="color:lime">'.$LNG['achievements_moon1_done'].'</span>',
				'moon1_img'    		=> ' <img src="styles/achievements/moon1_done.png" align="center" /></td>',
			));
		}
	
		//Civilian Fleet Achievement
		if($USER['achievements_ship1'] == 0)
		{
			if($PLANET['small_ship_cargo'] >= 25000 && $PLANET['big_ship_cargo'] >= 25000)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_ship1 = 1, exp_point = exp_point + 2 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/ship1_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_ship1_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($PLANET['small_ship_cargo'] >=25000)
				$ship1_req1 = '<span style="color:lime">'.$LNG['achievements_ship1_require_1'].'</span>';
			else
				$ship1_req1 = '<span style="color:red">'.$LNG['achievements_ship1_require_1'].'</span>';
			if($PLANET['big_ship_cargo'] >=50000)
				$ship1_req2 = '<span style="color:lime">'.$LNG['achievements_ship1_require_2'].'</span>';
			else
				$ship1_req2 = '<span style="color:red">'.$LNG['achievements_ship1_require_2'].'</span>';
	
				
			$this->tplObj->assign_vars(array(
				'ship1_req1'    => $ship1_req1,
				'ship1_req2'    => $ship1_req2,
				'ship1_title'   => ' <span style="color:red">'.$LNG['achievements_ship1'].'</span>',
				'ship1_img'    	=> ' <img src="styles/achievements/ship1_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_ship1'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'ship1_title'   => ' <span style="color:lime">'.$LNG['achievements_ship1'].'</span>',
				'ship1_req1'    => ' <span style="color:lime">'.$LNG['achievements_ship1_done'].'</span>',
				'ship1_req2'    => '',
				'ship1_img'   	=> ' <img src="styles/achievements/ship1_done.png" align="center" /></td>',
			));
		}
	
		//Fighter Fleet Achievement
		if($USER['achievements_ship2'] == 0)
		{
			if($PLANET['light_hunter'] >= 40000 && $PLANET['heavy_hunter'] >= 50000 && $PLANET['crusher'] >= 60000)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_ship2 = 1, exp_point = exp_point + 3 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/ship2_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_ship2_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($PLANET['light_hunter'] >=40000)
				$ship2_req1 = '<span style="color:lime">'.$LNG['achievements_ship2_require_1'].'</span>';
			else
				$ship2_req1 = '<span style="color:red">'.$LNG['achievements_ship2_require_1'].'</span>';
			if($PLANET['heavy_hunter'] >=50000)
				$ship2_req2 = '<span style="color:lime">'.$LNG['achievements_ship2_require_2'].'</span>';
			else
				$ship2_req2 = '<span style="color:red">'.$LNG['achievements_ship2_require_2'].'</span>';
			if($PLANET['crusher'] >= 60000)
				$ship2_req3 = '<span style="color:lime">'.$LNG['achievements_ship2_require_2'].'</span>';
			else
				$ship2_req3 = '<span style="color:red">'.$LNG['achievements_ship2_require_2'].'</span>';
	
				
			$this->tplObj->assign_vars(array(
				'ship2_req1'    => $ship2_req1,
				'ship2_req2'    => $ship2_req2,
				'ship2_req3'    => $ship2_req3,
				'ship2_title'   => ' <span style="color:red">'.$LNG['achievements_ship2'].'</span>',
				'ship2_img'    	=> ' <img src="styles/achievements/ship2_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_ship2'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'ship2_title'   => ' <span style="color:lime">'.$LNG['achievements_ship2'].'</span>',
				'ship2_req1'    => ' <span style="color:lime">'.$LNG['achievements_ship2_done'].'</span>',
				'ship2_req2'   	=> '',
				'ship2_req3'    => '',
				'ship2_img'    	=> ' <img src="styles/achievements/ship2_done.png" align="center" /></td>',
			));
		}
	
		//Battle Fleet Achievement
		if($USER['achievements_ship3'] == 0)
		{
			if($PLANET['battle_ship'] >= 40000 && $PLANET['bomber_ship'] >= 30000 && $PLANET['battleship'] >= 25000)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_ship3 = 1, exp_point = exp_point + 4 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/ship3_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_ship3_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($PLANET['battle_ship'] >=40000)
				$ship3_req1 = '<span style="color:lime">'.$LNG['achievements_ship3_require_1'].'</span>';
			else
				$ship3_req1 = '<span style="color:red">'.$LNG['achievements_ship3_require_1'].'</span>';
			if($PLANET['bomber_ship'] >=30000)
				$ship3_req2 = '<span style="color:lime">'.$LNG['achievements_ship3_require_2'].'</span>';
			else
				$ship3_req2 = '<span style="color:red">'.$LNG['achievements_ship3_require_2'].'</span>';
			if($PLANET['battleship'] >= 25000)
				$ship3_req3 = '<span style="color:lime">'.$LNG['achievements_ship3_require_2'].'</span>';
			else
				$ship3_req3 = '<span style="color:red">'.$LNG['achievements_ship3_require_2'].'</span>';
	
				
			$this->tplObj->assign_vars(array(
				'ship3_req1'    => $ship3_req1,
				'ship3_req2'    => $ship3_req2,
				'ship3_req3'    => $ship3_req3,
				'ship3_title'   => ' <span style="color:red">'.$LNG['achievements_ship3'].'</span>',
				'ship3_img'    	=> ' <img src="styles/achievements/ship3_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_ship3'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'ship3_title'   => ' <span style="color:lime">'.$LNG['achievements_ship3'].'</span>',
				'ship3_req1'    => ' <span style="color:lime">'.$LNG['achievements_ship3_done'].'</span>',
				'ship3_req2'   	=> '',
				'ship3_req3'  	=> '',
				'ship3_img'    	=> ' <img src="styles/achievements/ship3_done.png" align="center" /></td>',
			));
		}
	
		//Destroyer Fleet Achievement
		if($USER['achievements_ship4'] == 0)
		{
			if($PLANET['destructor'] >= 100000 && $PLANET['dearth_star'] >= 50000)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_ship4 = 1, exp_point = exp_point + 5 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/ship4_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_ship4_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($PLANET['destructor'] >= 100000)
				$ship4_req1 = '<span style="color:lime">'.$LNG['achievements_ship4_require_1'].'</span>';
			else
				$ship4_req1 = '<span style="color:red">'.$LNG['achievements_ship4_require_1'].'</span>';
			if($PLANET['dearth_star'] >= 50000)
				$ship4_req2 = '<span style="color:lime">'.$LNG['achievements_ship4_require_2'].'</span>';
			else
				$ship4_req2 = '<span style="color:red">'.$LNG['achievements_ship4_require_2'].'</span>';
				
			$this->tplObj->assign_vars(array(
				'ship4_req1'    => $ship4_req1,
				'ship4_req2'    => $ship4_req2,
				'ship4_title'   => ' <span style="color:red">'.$LNG['achievements_ship4'].'</span>',
				'ship4_img'    	=> ' <img src="styles/achievements/ship4_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_ship4'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'ship4_title'   => ' <span style="color:lime">'.$LNG['achievements_ship4'].'</span>',
				'ship4_req1'    => ' <span style="color:lime">'.$LNG['achievements_ship4_done'].'</span>',
				'ship4_req2'    => '',
				'ship4_img'    	=> ' <img src="styles/achievements/ship4_done.png" align="center" /></td>',
			));
		}
	
		//Imperial Fleet Achievement
		if($USER['achievements_ship5'] == 0)
		{
			if($PLANET['lune_noir'] >= 50000 && $PLANET['star_crasher'] >= 500)
			{
				$GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_ship5 = 1, exp_point = exp_point + 6 WHERE `id` = ".$USER['id'].";");

				$this->printMessage("
					<table style=\"width:99%\"><tr>
            			<td class=\"transparent\"><img src=\"styles/achievements/ship5_done.png\" /></td>
                    	<td class=\"transparent\"><p>".$LNG['achievements_ship5_success']."</p></td>
                	</tr></table>",true,  array("game.php?page=achievement", 4));
				exit;	
			}
			if($PLANET['lune_noir'] >=50000)
				$ship5_req1 = '<span style="color:lime">'.$LNG['achievements_ship5_require_1'].'</span>';
			else
				$ship5_req1 = '<span style="color:red">'.$LNG['achievements_ship5_require_1'].'</span>';
			if($PLANET['dearth_star'] >= 500)
				$ship5_req2 = '<span style="color:lime">'.$LNG['achievements_ship5_require_2'].'</span>';
			else
				$ship5_req2 = '<span style="color:red">'.$LNG['achievements_ship5_require_2'].'</span>';
				
			$this->tplObj->assign_vars(array(
				'ship5_req1'    => $ship5_req1,
				'ship5_req2'    => $ship5_req2,
				'ship5_title'   => ' <span style="color:red">'.$LNG['achievements_ship5'].'</span>',
				'ship5_img'    	=> ' <img src="styles/achievements/ship5_miss.png" align="center" /></td>',
	
			));
		}
	
		if($USER['achievements_ship5'] == 1)
		{
	
			$this->tplObj->assign_vars(array(
				'ship5_title' 	=> ' <span style="color:lime">'.$LNG['achievements_ship5'].'</span>',
				'ship5_req1'    => ' <span style="color:lime">'.$LNG['achievements_ship5_done'].'</span>',
				'ship5_req2'   	=> '',
				'ship5_img'    	=> ' <img src="styles/achievements/ship5_done.png" align="center" /></td>',
			));
		}
	
		$this->display('achievements_body.tpl');
	}
}
?>